<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // var a = 10
        // var b = 20

        // var [b, a] = [a, b]
        // console.log(a, b)

        // function fn([a, b, c]) {
        //     // let [a, b, c] = arr
        //     console.log(a, b, c)
        // }
        // fn(["张三","李四","王五"])

        let obj = {
            name: '张三',
            age: 20,
            height: '180cm'
        }
        // let {name:myname, age:myage, height:myheight} = obj
        // console.log(myname, myage, myheight)
        let {name, age, height} = obj
        console.log(name, age, height)



    </script>
</body>
</html>